*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --background: #04014B;
    --background-grad: #3C25BF;
    --accent: #B386F7;
}

body{
    height: 100vh;
    width: 100vw;
    background: linear-gradient(var(--background) 67%, var(--background-grad) 100%);
}

.main-wrapper{
    margin-top: 40vh;
    margin-left: 15vw;
}

.intro{
    font-style: italic;
    font-size: 25px;
    color: #FFFFFF;
}

.name{
    font-size: 100px;
}
.first, .last{
    background: linear-gradient(90deg, #B386F7, #D5C8E9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.desc, .city{
    color: #FFFFFF;
    font-size: 40px;
}

.desc{
    display: flex;
    align-items: baseline; 
    color: #FFFFFF;
    font-size: 40px;
    line-height: 40px;
}

.desc .dynamic{
    margin-left: 10px;
    line-height: 48px;
    height: 48px;
    overflow: hidden;
    position: relative;

}

.dynamic li{
    list-style: none;
    font-weight: bolder;
    top: 0;
    height: 48px;
    line-height: 48px;
    font-size: 40px;
    position: relative;
    animation: slide 9s steps(3) infinite;
    background: linear-gradient(90deg, var(--accent), #D5C8E9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
}

@keyframes slide {
    100%{
        top: -144px
    }
    
}

.dynamic li::after{
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    border-left: 2px solid var(--accent);
    background-color: #04014B;
    left: 0;
    animation: typing 3s steps(9) infinite;
} 

@keyframes typing {
    40%, 60%{
        left: calc(100% + 30px)
    }
    100%{
        left: 0;
    }
}

.icon{
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 40px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 5px;
    text-decoration: none;
}

.socials{
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.icon:hover{
    color: #cbaff5;
    border: 1px solid #cbaff5;
    transform: scale(1.1);
}

.contact{
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px;
    margin-top: 20px;
    border-radius: 4px;
    height: 40px;
    width: 175px;
    font-size: 24px;

}

.contact:hover{
    cursor: pointer;
    color: #cbaff5;
    border: 1px solid #cbaff5;
    transform: scale(1.1);
}

.pfp{
    width: 700px;
    height: 700px;
    border-radius: 50%;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 25vh;
    margin-right: 15vw;
    border: 2px solid var(--accent);
     box-shadow: 0 0 .2rem #fff,
            0 0 .2rem var(--accent),
            0 0 2rem var(--accent),
            0 0 0.8rem var(--accent),
            0 0 2.8rem var(--accent),
            inset 0 0 1.3rem var(--accent); 
}

.logo{
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 50%;
    height: 70px;
    width: 80px;
}

.nav-bar{
    position: absolute;
    display: flex;
    list-style: none;
    right: 2vw;
    top: 25px;
    gap: 30px;
}

.nav-bar li{
    color: var(--accent);
    display: flex;
    justify-content: space-evenly;
    font-size: 30px;
    border-style: none;
}

.nav-bar li:hover{
    cursor: pointer;
    color: #cbaff5;
    transform: scale(1.1);
}

.nav-bar .text{
    color: #fff;
    font-style: normal;
}

.nav-bar a{
    text-decoration: none;
}

.nav{
    height: 80px;
    border-bottom: 1px solid var(--accent);
}

.nav-bar .text:hover{
    cursor: pointer;
    color: #cbaff5;
}

.resume{
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px;
    border-radius: 4px;
    height: 40px;
    width: 175px;
    font-size: 24px;
}

.resume:hover{
    cursor: pointer;
    color: #cbaff5;
    border: 1px solid #cbaff5;
    transform: scale(1.1);
}

/* Hide hamburger by default */
.hamburger {
    display: none;
    background: transparent;
    color: var(--accent);
    border: none;
    font-size: 36px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Mobile view */
@media (max-width: 768px) {
    .nav-bar {
        display: none;
        flex-direction: column;
        background-color: var(--background);
        position: absolute;
        top: 80px;
        right: 0;
        width: 200px;
        padding: 10px;
        border: 1px solid var(--accent);
        border-radius: 6px;
        z-index: 1000;
    }

    .nav-bar.show {
        display: flex;
    }

    .nav-bar li {
        font-size: 24px;
        padding: 10px;
    }

    .resume {
        width: 100%;
    }

    .hamburger {
        display: block;
    }
}
